package cn.anecansaitin.whimsy.common.register;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.common.loot.SimpleLootModifier;
import com.mojang.serialization.Codec;
import net.neoforged.neoforge.common.loot.IGlobalLootModifier;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;
import net.neoforged.neoforge.registries.NeoForgeRegistries;

public class ModLootModifiers {
    public static final DeferredRegister<Codec<? extends IGlobalLootModifier>> MODIFIER = DeferredRegister.create(NeoForgeRegistries.GLOBAL_LOOT_MODIFIER_SERIALIZERS, Whimsy.MODID);
    public static final DeferredHolder<Codec<? extends IGlobalLootModifier>, Codec<SimpleLootModifier>> SIMPLE_LOOT_MODIFIER_CODEC = MODIFIER.register("simple_loot_modifier_codec", () -> SimpleLootModifier.CODEC);
}
